/*
  ID: nemokin1
  PROG: zerosum
  LANG: C++
*/
#include <vector>
#include <list>
#include <assert.h>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <fstream>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
 
using namespace std;
 
#define REP(i,n) for(int i=0; i<(n); ++i)
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define FORD(i,a,b) for(int i=(a);i>=b;--i)
#define FOREACH(it,c) for(typeof((c).begin()) it=(c).begin();it!=(c).end();++it)
#define ALL(c) (c).begin(),(c).end()
 
#define debug(x) cerr<< #x << " = " << (x) << "\n";
#define debugv(v) cerr << #v << " = "; FOREACH(it,v) cerr << *it <<","; cerr << "\n";
#define SIZE(a)  (int(a.size()))
 
template<typename T> inline void checkMax(T& a, T b) {if (b>a) a=b;}
template<typename T> inline void checkMin(T& a, T b) {if (b<a) a=b;}
 
typedef long long LL;
typedef vector<int> VI;
typedef vector<string> VS;
typedef long double ld;
const int INF = 1000000000;

int N;
char deli[3] = {' ','+','-'};
char seq[11];

int check(char *seq)
{
    vector<string> vs;
    int start = 1;
    int end;
    for(int i = 0; i <= N-1; i++){
	if(seq[i] == ' ') continue;
	end = i+1;
	string s;
	for(int k = start; k <= end; k++){
	    s+=k+'0';
	}
	vs.push_back(s);
	start = end+1;
	if(seq[i] == '+') vs.push_back("+");
	if(seq[i] == '-') vs.push_back("-");
    }
    //debugv(vs);
    int lv = 0;
    string op = "+";
    for(int i = 0; i < vs.size(); i+=2){
	stringstream ss(vs[i]);
	int rv;
	ss >> rv;
	if(op == "+") lv+=rv;
	if(op == "-") lv-=rv;
	if(i < vs.size() - 1)
	    op = vs[i+1];
    }
    //debug(lv);
    return lv;
}

void dfs(int len)
{
    //debug(len);
    if(len == 0){
	if(check(seq) == 0){
	    for(int i = 0; i < N-1; i++) cout << i+1 << seq[i];
	    cout << N << endl;
	}
	return;
    }
    for(int i = 0; i < 3; i++){
	seq[N-1-len] = deli[i];
	dfs(len-1);
    }
}
		
	    
int main() {
    freopen("zerosum.in","r",stdin);freopen("zerosum.out","w",stdout);
    cin >> N;
    dfs(N-1);
    exit(0);
}
